package com.amap.search.entity.vo;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class AmapPoiResponse2 extends AmapBaseResponse{
    @ApiModelProperty("搜索POI信息列表")
    private List<AmapPoiResponse2.Poi> pois;

    @ApiModelProperty("城市建议列表【暂时用不到的字段】")
    private Object suggestion;

    @Data
    public static class Poi{
        @ApiModelProperty("唯一ID")
        private String id;

        @ApiModelProperty("名称")
        private String name;

        @ApiModelProperty("兴趣点类型")
        private String type;

        @ApiModelProperty("兴趣点类型编码")
        private String typecode;

        @ApiModelProperty("详细地址")
        private String address;

        @ApiModelProperty("经纬度")
        private String location;

        @ApiModelProperty("区域编码")
        private String adcode;

        @ApiModelProperty("地图更新时间")
        private String timestamp;

        private List<AmapPoiResponse2.Photos> photos;

        private Business business;
    }

    @Data
    public static class Business{
        @ApiModelProperty("特色内容")
        private String tag;

        @ApiModelProperty("poi联系电话")
        private String tel;

        @ApiModelProperty("用户评价")
        private String rating;

        @ApiModelProperty("人均消费")
        private String cost;
    }

    @Data
    public static class Photos{
        private String title;

        private String url;
    }


}
